<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="css/front.css" rel="stylesheet" />
<link type="text/css" href="css/main.css" rel="stylesheet" />
<link type="text/css" href="css/home.css" rel="stylesheet" />
<link type="text/css" href="css/alert.css" rel="stylesheet"/>
<link href="css/alert.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="css/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<script type="text/javascript" src="common/JsSupport.js"></script>
<title>记账本</title>
</head>
<body>
	
	<div id="newDiv">
		<s:form id="newForm">
			<span style="color:red">*</span>名称：
			<s:textfield  theme="simple" id="categoryName" cssClass="txt_input" class='theme'/>
			<br>
			<input type="button" id="submit" value="提交" class='theme'/>
			<input type="button" id="continueAdd" value="继续添加" class='theme'/>
			<input type="button" id="close" value="关闭" class='theme'/>
		</s:form>
	</div>
	
</body>
<script type="text/javascript">
$(function(){
	/**
	 * 提交
	 */
	$('#submit').click(function(){
		window.parent.submitNewCateDialog($('#categoryName').val());
	});
	
	$('#continueAdd').click(function(){
		window.parent.continueAddData($('#categoryName').val());
		$('#categoryName').val("");
	});
	
	$('#close').click(function(){
		window.parent.closeNewCateDialog();
	});
	
});
</script>
</html>